package com.henry.controller;

import com.henry.feign.service.StuFeignService;
import com.henry.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-cloud-alibaba-demo
 * @description:
 * @author: Henry.zhang
 * @create: 2022-08-22 11:49
 */

@RestController
@RequestMapping("consumer")
public class ConsumerController {

    @Autowired
    private StuFeignService stuFeignService;

    /*
    实现远程调用
     */
    @RequestMapping("test")
    public R test(){
        return stuFeignService.getAll();
    }


}
